<template>
  <template v-if="route.meta.guestOnly">
    <router-view />
  </template>
  <template v-else>
    <MainLayout>
      <router-view />
    </MainLayout>
  </template>
</template>

<script setup>
import MainLayout from '@/components/layout/MainLayout.vue'
import { useRoute } from 'vue-router'

const route = useRoute()
</script>

<style>
/* Global styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #333;
}
</style>
